import { http } from '@/utils/http'

// 微信一键登录
export const ApiWeixinMiniAppLogin = (data) => {
  return http.post('/app-api/member/auth/weixin-mini-app-login', data)
}
// 更新用户信息
export const ApiUserUpdate = (data) => {
  return http.put('/app-api/member/user/update', data)
}

// 获取用户信息
export const ApiUserInfo = () => {
  return http.get('/app-api/member/user/get')
}

// 登出系统
export const ApiLogout = () => {
  return http.post('/app-api/member/auth/logout')
}

// 用户兑换激活码
export const ApiUserExchangeCode = (data) => {
  return http.post('/app-api/member/activation/create', data)
}